import request from '@/request/request'
// 查询入库单列表
export function getReceiptList(data) {
  return request({
    url: `/business/site/receiptList`,
    method: 'get',
		data:data
  })
}
//查询入库单详情
export function getReceiptListDetail(data) {
  return request({
    url: `/business/site/receiptListDetail`,
    method: 'get',
		data:data
  })
}
//相关入库单
export function getRelatedReceiptDocument(data) {
  return request({
    url: `/business/site/relatedReceiptDocument`,
    method: 'get',
		data:data
  })
}

//新增入库单
export function addNewReceiptDoc(data) {
  return request({
    url: `/business/receipt_list`,
    method: 'post',
		data:data
  })
}
//删除入库单
export function deleteReceiptDoc(id) {
  return request({
    url: `/business/receipt_list/${id}`,
    method: 'delete',
  })
}

//回收站列表
export function getRecycleList(data) {
  return request({
    url: `/business/recycle_bin/list`,
    method: 'get',
		data:data
  })
}

//中转站列表
export function getTransferList(data) {
  return request({
    url: `/business/transfer_station/list`,
    method: 'get',
		data:data
  })
}

//分拣中心列表
export function getSortingList(data) {
  return request({
    url: `/business/sorting_center/list`,
    method: 'get',
		data:data
  })
}

//回收员列表
export function getRecyclerList(data) {
  return request({
    url: `/business/recycler/list`,
    method: 'get',
		data:data
  })
}

//用户列表
export function getResidentList(data) {
  return request({
    url: `/business/user/list`,
    method: 'get',
		data:data
  })
}

//所有司机列表
export function getDriverList(data) {
  return request({
    url: `/business/driver/listAll`,
    method: 'get',
		data:data
  })
}
// 入库单查询收运订单列表 indate driverid
export function getOrderListByReceipt(query) {
  return request({
    url: '/business/receipt_list/getOrderListByReceipt',
    method: 'get',
    data: query
  })
}
//创建入库单确认时,提示的总重量 /business/receipt_list/getTaskTotalWeight/{taskId}
export function getTaskTotalWeight(taskId) {
  return request({
    url: `/business/receipt_list/getTaskTotalWeight/${taskId}`,
    data: 'get'
  })
}








